home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_11_03
/
1103042b
< prev
next >
Wrap
Text File
|
1992-11-11
|
1KB
|
36 lines
/****************************************************/
/* */
/* SSX_CONF.H - configuration info needed for */
/* SSX (stack swap executive) */
/* */
/* By Tom Green and Dennis Cronin */
/* 10/19/92 */
/* */
/****************************************************/
/* main config params */
/* maximum number of tasks */
#define MAX_TASKS 24
/* 1 tick per slice */
#define TIME_SLICE 1
/* number of bytes of context info */
#define CNTXT_SZ 8
/*
* enable interrupts - this will have to be ported
* in other environments
*/
#define enable_ints enable
/* variable type to keep interrupt status in */
typedef
int int_state_var;
/* save off current state, disable all interrupts */
#define ints_off(isv) isv=disable_ints()
/* explicitly enable interrupts */
#define ints_on() enable_ints()
/* reload previous interrupt enables */
#define restore_ints(isv) { if(isv) enable(); }